package summer_vacation.yangyiqing.m201508;

/**
 * Created by Administrator on 2015/9/1 0001.
 */
public class Java_19 {
    public static void main(String[] args){
        double s=0;
        for(double i=1;i<=100;i++){
            s=s+(Math.pow(-1,i+1))*(1/i);
        }
        System.out.println("1-1/2+1/3-1/4+...+1/99-1/100="+s);
    }
}
